/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.univcasa.db.model;

import java.util.HashMap;

/**
 *
 * @author issam
 */
public class Criteres extends HashMap{

    public Criteres() {
        super();
    }

    public void addCritere(String critere,String value){
        put(critere,value==null||"".equals(value)?"%":value.toUpperCase());
    }    
    
    public String getCritere(String critere){
        String value= (String) get(critere) ;
        return (value==null||"".equals(value)?"%":value.toUpperCase());
    }

    public void put(String critere,String value){
        super.put(critere,value==null||"".equals(value)?"%":value.toUpperCase());
    }

}
